package com.spot.data.test.demo.dto;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 质押物Dto
 *
 * @author Andy
 * @date 2020/6/1
 * @since 1.2
 */
public class PledgeDto {

    private Integer id;
    /** 委托人ucId */
    private String entrust;
    /** 续期源委托ID */
    private Integer origRenewId;
    /** 续期原质押物ID */
    private Integer renewPledgeId;
    /** 续期代理状态 */
    private int renewAgentState; // 续期代理状态：0--已代理；1--续期代理中
    /** 质押物号码 */
    private String number;
    /** 质押物的数据类型 代理商采购、销售等*/
    private int category;
    /** 状态 */
    private int status;
    /** 匹配成功时候的时间 */
    private Date matchTime;
    /** 续期源代理时间 */
    private Date origMatchTime;
    /** 质押物(仓单)期限 */
    private int deadline;
    /** 质押物(仓单)到期时间 */
    private Date deadlineTime;
    /** 了结成功的时间 */
    private Date finishTime;
    /** 了结原因 */
    private Integer finishReason;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEntrust() {
        return entrust;
    }

    public void setEntrust(String entrust) {
        this.entrust = entrust;
    }

    public Integer getOrigRenewId() {
        return origRenewId;
    }

    public void setOrigRenewId(Integer origRenewId) {
        this.origRenewId = origRenewId;
    }

    public Integer getRenewPledgeId() {
        return renewPledgeId;
    }

    public void setRenewPledgeId(Integer renewPledgeId) {
        this.renewPledgeId = renewPledgeId;
    }

    public int getRenewAgentState() {
        return renewAgentState;
    }

    public void setRenewAgentState(int renewAgentState) {
        this.renewAgentState = renewAgentState;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getMatchTime() {
        return matchTime;
    }

    public void setMatchTime(Date matchTime) {
        this.matchTime = matchTime;
    }

    public Date getOrigMatchTime() {
        return origMatchTime;
    }

    public void setOrigMatchTime(Date origMatchTime) {
        this.origMatchTime = origMatchTime;
    }

    public int getDeadline() {
        return deadline;
    }

    public void setDeadline(int deadline) {
        this.deadline = deadline;
    }

    public Date getDeadlineTime() {
        return deadlineTime;
    }

    public void setDeadlineTime(Date deadlineTime) {
        this.deadlineTime = deadlineTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Integer getFinishReason() {
        return finishReason;
    }

    public void setFinishReason(Integer finishReason) {
        this.finishReason = finishReason;
    }

    @Override
    public String toString() {
        return "PledgeDto{" +
                "id=" + id +
                ", entrust='" + entrust + '\'' +
                ", origRenewId=" + origRenewId +
                ", renewPledgeId=" + renewPledgeId +
                ", renewAgentState=" + renewAgentState +
                ", number='" + number + '\'' +
                ", category=" + category +
                ", status=" + status +
                ", matchTime=" + matchTime +
                ", origMatchTime=" + origMatchTime +
                ", deadline=" + deadline +
                ", deadlineTime=" + deadlineTime +
                ", finishTime=" + finishTime +
                ", finishReason=" + finishReason +
                '}';
    }
}
